import http from './request';
/**  暂时注释  **/
// 获取登陆token
export function login(data) {
	return http.request({
	   url: 'auth-service/login',
	   method: "POST",
	   contentType: "application/json;charset=utf-8",
	   data: JSON.stringify(data)
	})
}
// 发送验证码
export function verifyCode(data){
	return http.request({
	   url: 'auth-service/verifyCode',
	   method: "POST",
	   contentType: "application/json;charset=utf-8",
	   data: JSON.stringify(data)
	})
}
// 用户注册
export function register(data){
	return http.request({
	   url: 'auth-service/register',
	   method: "POST",
	   contentType: "application/json;charset=utf-8",
	   data: JSON.stringify(data)
	})
}

// 重置密码
export function resetPassword(data) {
  return http.request({
    url: 'auth-service/password/reset',
    method: "PUT",
    data
  })
}

// 清楚缓存
export function cleatCache(data) {
  return http.request({
    url: 'auth-service/redisClear',
    method: "PUT",
    data
  })
}


// 发送验证码
export function getCode(data) {
  return http.request({
    url: 'auth-service/verifyCode',
    method: "POST",
    data
  })
}

// 获取用户信息
export function getUserMessage() {
  return http.request({
    url: 'auth-service/user',
    method: "GET"
  })
}

// 待审核公司接口
export function getCompanyList() {
  return http.request({
    url: 'auth-service/user/approvals',
    method: "GET"
  })
}

// 销售管理待审核接口
export function getSalesOrderList(data) {
  return http.request({
    url: 'sales-service/sales/order/approve/list',
    method: "POST",
    contentType: "application/json;charset=utf-8",
    data: JSON.stringify(data)
  })
}
// 获取access_token接口
export function getAccessToken() {
  return http.request({
    url: 'auth-service/getDingDingAccessToken',
    method: "GET"
  })
}
// 获取token
export function getToken(data) {
  return http.request({
    url: 'auth-service/loginByDingDingUserId',
    method: "GET",
    data
  })
}
// 绑定手机号
export function bindMobile(data) {
  return http.request({
    url: 'auth-service/bindDingdingUser',
    method: "POST",
    contentType: "application/json;charset=utf-8",
    data: JSON.stringify(data)
  })
}
// 销售订单查询列表接口
export function saleListPage(data) {
  return http.request({
    url: 'sales-service/sales/order/listPage',
    method: "GET",
    data
  })
}
// 销售订单订单详情

export function orderDetail(data) {
  return http.request({
    url: 'sales-service/sales/order/'+data,
    method: "GET",
  })
}
// 销售退货列表
export function returnListPage(data) {
  return http.request({
    url: 'sales-service/delivery/backDelivery',
    method: "GET",
    data
  })
}
/*************************************************/

// 我的任务分类列表
export function TaskmyListPage(data){
	return http.request({
	  url: 'task-service/task/myList',
	  method: "GET",
	  data
	})
}
// 查询月周日任务(分页)
export function queryMWDTaskByPage(data){
	return http.request({
	  url: 'task-service/task/queryMWDTaskByPage',
	  method: "GET",
	  data
	})
}
// 设置周日重要任务
export function setWDImportantTask(data){
	return http.request({
	  url: 'task-service/task/setWDImportantTask',
	  method: "POST",
	  contentType: "application/json;charset=utf-8",
	  data: JSON.stringify(data)
	})
}

// 全部任务分类列表
export function AlltypeListPage(data){
	return http.request({
	  url: 'task-service/task/typeList',
	  method: "POST",
	  contentType: "application/json;charset=utf-8",
	  data: JSON.stringify(data)
	})
}
// 任务详情
export function taskDetail(data){
	return http.request({
	  url: 'task-service/task/taskDetail?id='+ data.id,
	  method: "POST",
	  contentType: "application/json;charset=utf-8",
	})
}
// 任务消息列表监控
export function MonitorListTask(data){
	return http.request({
	  url: 'sales-service/sales/monitor/list/task/'+data.id + '/' + data.hidden,
	  method: "GET",
	})
}
// 发送项目消息
export function monitorSend(data){
	return http.request({
	  url: 'sales-service/sales/monitor/send',
	  method: "POST",
	  contentType: "application/json;charset=utf-8",
	  data: JSON.stringify(data)
	})
}
// 隐藏或显示项目消息
export function monitorHiddenChange(data){
	return http.request({
	  url: 'sales-service/sales/monitor/hiddenChange',
	  method: "POST",
	  contentType: "application/json;charset=utf-8",
	  data: JSON.stringify(data)
	})
}
// 选择人员列表
export function employeeList(data){
	return http.request({
	  url: 'company-service/employee/list',
	  method: "POST",
	  contentType: "application/json;charset=utf-8",
	  data: JSON.stringify(data)
	})
}

// 新增指向任务
export function addTaskTarget(data){
	return http.request({
	  url: 'task-service/task/addTaskTarget',
	  method: "POST",
	  contentType: "application/json;charset=utf-8",
	  data: JSON.stringify(data)
	})
}

// 任务开始, 暂停, 继续
export function taskChangeStatus(data){
	return http.request({
	  url: 'task-service/task/changeStatus',
	  method: "POST",
	  contentType: "application/json;charset=utf-8",
	  data: JSON.stringify(data)
	})
}
// 任务完结
export function taskFinish(data){
	return http.request({
	  url: 'task-service/task/finish',
	  method: "POST",
	  contentType: "application/json;charset=utf-8",
	  data: JSON.stringify(data)
	})
}
// 转派任务
export function taskRedeploy(data){
	return http.request({
	  url: 'task-service/task/redeploy',
	  method: "POST",
	  contentType: "application/json;charset=utf-8",
	  data: JSON.stringify(data)
	})

}
// 完成/异常提报
export function taskForEnd(data){
	return http.request({
	  url: 'task-service/task/forEnd',
	  method: "POST",
	  contentType: "application/json;charset=utf-8",
	  data: JSON.stringify(data)
	})
}
// 任务编辑
export function taskUpdate(data){
	return http.request({
	  url: 'task-service/task/update',
	  method: "POST",
	  contentType: "application/json;charset=utf-8",
	  data: JSON.stringify(data)
	})
}
// 获取用户信息
export function user(data){
	return http.request({
	  url: 'auth-service/user',
	  method: "GET",
	  data
	})
}
// 提报退回
export function backEnd(data){
	return http.request({
	  url: 'task-service/task/backEnd',
	  method: "POST",
	  contentType: "application/json;charset=utf-8",
	  data: JSON.stringify(data)
	})
}
// 提报完成
export function taskEnd(data){
	return http.request({
	  url: 'task-service/task/end',
	  method: "POST",
	  contentType: "application/json;charset=utf-8",
	  data: JSON.stringify(data)
	})
}

/****************************************************/

// 项目列表
export function projectList(data){
	return http.request({
	  url: 'task-service/project/projectList',
	  method: "POST",
	  contentType: "application/json;charset=utf-8",
	  data: JSON.stringify(data)
	})
}

// 项目基本信息
export function projectDetail(data){
	return http.request({
	  url: 'task-service/project/projectDetail',
	  method: "GET",
	  data
	})
}
// 项目统计页
export function projectStatistics(data){
	return http.request({
	  url: 'task-service/project/statistics',
	  method: "GET",
	  data
	})
}
// 进展情况
export function projectProgress(data){
	return http.request({
	  url: 'task-service/project/projectProgress',
	  method: "GET",
	  data
	})
}
// 剩余工时
export function projectRemainingWork(data){
	return http.request({
	  url: 'task-service/project/projectRemainingWork',
	  method: "GET",
	  data
	})
}
// 人力成本
export function projectLaborCost(data){
	return http.request({
	  url: 'task-service/project/projectLaborCost',
	  method: "GET",
	  data
	})
}
// 项目甘特图人员列表
export function projectDiagramEmployeeList(data){
	return http.request({
	  url: 'task-service/gantt/projectDiagramEmployeeList',
	  method: "GET",
	  data
	})
}
// 项目阶段列表
export function projectPhaseList(data){
	return http.request({
	  url: 'task-service/project/projectPhaseList',
	  method: "GET",
	  data
	})
}
// 项目阶段详情
export function projectPhaseDetail(data){
	return http.request({
	  url: 'task-service/project/projectPhaseDetail',
	  method: "GET",
	  data
	})
}

// 项目成员列表
export function projectMemberList(data){
	return http.request({
	  url: 'task-service/project/memberList',
	  method: "GET",
	  data
	})
}
// 项目成员详细
export function projectMemberDetail(data){
	return http.request({
	  url: 'task-service/project/memberDetail',
	  method: "GET",
	  data
	})
}

// 查询任务树分页
export function queryTaskTreePage(data){
	return http.request({
	  url: 'task-service/task/queryTaskTreePage',
	  method: "GET",
	  data
	})
}
// 项目基本信息编辑
export function updateProjectDetail(data){
	return http.request({
	  url: 'task-service/project/updateProjectDetail',
	  method: "POST",
	  contentType: "application/json;charset=utf-8",
	  data: JSON.stringify(data)
	})
}
// 新建项目
export function addProject(data){
	return http.request({
	  url: 'task-service/project/addProject',
	  method: "POST",
	  contentType: "application/json;charset=utf-8",
	  data: JSON.stringify(data)
	})
}
// 项目看板
export function projectBoard(data){
	return http.request({
	  url: 'task-service/project/projectBoard',
	  method: "GET",
	  data
	})
}

/****************************************************/
// 仓储管理信息
export function storageNews(data){
	return http.request({
	  url: 'storage-service/operation/list',
	  method: "GET",
	  data
	})
}
// 采购无单收货（待处理）
export function purchaseNoStay(data){
	return http.request({
	  url: 'purchase-service/purchase/list/noOrder',
	  method: "POST",
	  contentType: "application/json;charset=utf-8",
	  data: JSON.stringify(data)  
	})
}
// 采购无单收货（已收货）
export function alreadyStay(data){
	return http.request({
	  url: 'purchase-service/purchase/list/noOrder/fish',
	  method: "POST",
	  contentType: "application/json;charset=utf-8",
	  data: JSON.stringify(data)  
	})
}
// 采购无单收货订单详情
export function purchaseNoDetail(data){
	return http.request({
	  url: 'purchase-service/purchase/detail',
	  method: "POST",
	  data: JSON.stringify(data) 
	})
}
// 默认库位//默认工序
export function defaultNews(data){
	return http.request({
	  url: 'storage-service/storehouses',
	  method: "GET",
	  data
	})
}
// 选择库位
export function selectedLibrary(data){
	return http.request({
	  url: 'storage-service/storehouses/'+data,
	  method: "GET",
	})
}
// 无单收货提交
export function noSingleSubmit(data){
	// let params = data.cmdId;
	return http.request({
		url: 'purchase-service/purchase/signInNoOrder',
		method: "POST",
		contentType: "application/json;charset=utf-8",
		data: JSON.stringify(data)
	})
}
// 查询容器
export function holderList(data){
	return http.request({
	  url: 'storage-service/containers/'+data,
	  method: "GET",
	})
}
// 物料入库-->采购入库
export function purchasePutList(data){
	return http.request({
	  url: 'storage-service/invoices/in',
	  method: "GET",
	  data
	})
}
// 物料入库-->采购入库-->详情
export function purchaseListDetail(data){
	let params = data.id;
	return http.request({
	  url: 'storage-service/invoices/'+params,
	  method: "GET",
	  data
	})
}
// 物料入库提交
export function warehousingSubmit(data){
	return http.request({
		url: 'storage-service/op/in',
		method: "POST",
		contentType: "application/json;charset=utf-8",
		data: JSON.stringify(data)
	})
}
// 物料出库
export function purchaseOutList(data){
	return http.request({
	  url: 'storage-service/invoices/out',
	  method: "GET",
	  data
	})
}
// 物料出库详情
export function purchaseOutDetail(data){
	let params = data.id;
	return http.request({
	  url: 'storage-service/invoices/'+params,
	  method: "GET",
	  data
	})
}
// 物流信息
export function LogisticsNews(data){
	// let params = data.cmdId;
	return http.request({
	  url: 'sales-service/delivery/cmd/list',
	  method: "GET",
	  data
	})
}
// 查看快第
export function logisticsSee(data){
	// let params = data.cmdId;
	return http.request({
		url: 'cross-service/delivery/logistics',
		method: "POST",
		contentType: "application/json;charset=utf-8",
		data: JSON.stringify(data)
	})
}
// 本公司物料
export function matterOwn(data){
	return http.request({
	  url: 'storage-service/matchs',
	  method: "GET",
	  data
	})
}
// 本公司物料列表
export function matterOwnList(data){
	return http.request({
	  url: 'storage-service/materials',
	  method: "GET",
	  data
	})
}
// 本公司物料详情
export function matterOwnDetail(data){
	let params = data.id;
	return http.request({
	  url: 'storage-service/materials/'+params,
	  method: "GET",
	  data
	})
}
// 查看批次
export function seeBatch(data){
	return http.request({
	  url: 'storage-service/batchs',
	  method: "GET",
	  data
	})
}
// 选择批次
export function selectedBatch(data){
	return http.request({
	  url: 'storage-service/batchs/'+data,
	  method: "GET",
	})
}
// 销售出库提交
 export function checkoutSubmit(data){
	  return http.request({
		url: 'storage-service/op/out',
		method: "POST",
		contentType: "application/json;charset=utf-8",
		data: JSON.stringify(data)
	  })
  }
// OKR列表
export function okrList(data) {
	return http.request({
	  url: 'okr-service/okr/list',
	  method: "GET",
	  data
	})
  }
   // 获取OKR详情
  	export function getTargetDetail(data) {
		return http.request({
		  url: 'okr-service/okr/getTargetDetail/' + data,
		  method: "GET",
		  data
		})
    }
	
  // 查看人员
  export function getEmployees(data) {
	return http.request({
	  url: 'okr-service/okr/getEmployees',
	  method: "GET",
	  data
	})
  }

  // 设置O信心值
  export function setObjectivesConfidenceValue(data){
	  return http.request({
		url: 'okr-service/okr/setObjectivesConfidenceValue',
		method: "POST",
		contentType: "application/json;charset=utf-8",
		data: JSON.stringify(data)
	  })
  }


  // 设置KR信心值
  export function setConfidenceValue(data){
  	  return http.request({
  		url: 'okr-service/okr/setConfidenceValue',
  		method: "POST",
  		contentType: "application/json;charset=utf-8",
  		data: JSON.stringify(data)
  	  })
  }

  // 设置KR进度
  export function setProgress(data){
  	  return http.request({
  		url: 'okr-service/okr/setProgress',
  		method: "POST",
  		contentType: "application/json;charset=utf-8",
  		data: JSON.stringify(data)
  	  })
  }

  // 设置KR成果权重
  export function setWeights(data){
  	  return http.request({
  		url: 'okr-service/okr/setWeights',
  		method: "POST",
  		contentType: "application/json;charset=utf-8",
  		data: JSON.stringify(data)
  	  })
  }
  // 关注用户
  export function focusOn(data){
	  return http.request({
		url: 'okr-service/okr/focusOn',
		method: "POST",
		contentType: "application/json;charset=utf-8",
		data: JSON.stringify(data)
	  })
  }

  // 取消关注用户
  export function unsubscribe(data){
	  return http.request({
		url: 'okr-service/okr/unsubscribe/' + data ,
		method: "POST",
		contentType: "application/json;charset=utf-8"
	  })
  }


  // 获取进度记录
  export function getRecord(data){
	  return http.request({
		url: 'okr-service/okr/record',
		method: "POST",
		contentType: "application/json;charset=utf-8",
		data: JSON.stringify(data)
	  })
  }


  // 向下关联的KR数据列表
  export function getOrientationList(data) {
	return http.request({
	  url: 'okr-service/okr/krByUserName',
	  method: "GET",
	  data
	})
  }

  // 向上关联的Objectives数据列表
  export function objectivesByUserName(data){
  	  return http.request({
  		url: 'okr-service/okr/objectivesByUserName',
  		method: "POST",
  		contentType: "application/json;charset=utf-8",
  		data: JSON.stringify(data)
  	  })
  }


  // Objectives对齐
  export function objectivesToIt(data){
	  return http.request({
		url: 'okr-service/okr/objectivesToIt',
		method: "POST",
		contentType: "application/json;charset=utf-8",
		data: JSON.stringify(data)
	  })
  }
  // KR对齐
  export function krToIt(data){
  	  return http.request({
  		url: 'okr-service/okr/krToIt',
  		method: "POST",
  		contentType: "application/json;charset=utf-8",
  		data: JSON.stringify(data)
  	  })
  }

  // 任务列表
  export function getTaskList(data) {
  	return http.request({
  	  url: 'task-service/task/taskSimpleList',
  	  method: "GET",
  	  data
  	})
  }

  // O跟任务关联
  export function objectivesAssociationTask(data){
  	  return http.request({
  		url: 'okr-service/okr/objectivesAssociationTask',
  		method: "POST",
  		contentType: "application/json;charset=utf-8",
  		data: JSON.stringify(data)
  	  })
  }


  // 项目列表
  export function getProjectList(data) {
  	return http.request({
  	  url: 'task-service/project/projectSimpleList',
  	  method: "GET",
  	  data
  	})
  }

  // O跟项目关联
  export function objectivesAssociationProject(data){
  	  return http.request({
  		url: 'okr-service/okr/objectivesAssociationProject',
  		method: "POST",
  		contentType: "application/json;charset=utf-8",
  		data: JSON.stringify(data)
  	  })
  }
  // 按状态查看项目成员详细
  export function memberDetailByStatus(data){
	  return http.request({
	    url: 'task-service/project/memberDetailByStatus',
	    method: "GET",
	    data
	  })
  }
  // 创建目标
  export function createTarget(data){
  	  return http.request({
  		url: 'okr-service/okr/createTarget',
  		method: "POST",
  		contentType: "application/json;charset=utf-8",
  		data: JSON.stringify(data)
  	  })
  }

  // 编辑目标
  export function updateTarget(data){
  	  return http.request({
  		url: 'okr-service/okr/updateTarget',
  		method: "POST",
  		contentType: "application/json;charset=utf-8",
  		data: JSON.stringify(data)
  	  })
  }
  // 删除KR
  export function deleteKrById(data){
  	  return http.request({
  		url: 'okr-service/okr/deleteKrById/'+ data,
  		method: "POST",
  		contentType: "application/json;charset=utf-8",
  		data: JSON.stringify(data)
  	  })
  }

  // 删除O
  export function deleteObjectiveById(data){
  	  return http.request({
  		url: 'okr-service/okr/deleteObjectiveById/'+ data,
  		method: "POST",
  		contentType: "application/json;charset=utf-8",
  		data: JSON.stringify(data)
  	  })
  }

  // KR跟任务关联
  export function krAssociationTask(data){
  	  return http.request({
  		url: 'okr-service/okr/krAssociationTask',
  		method: "POST",
  		contentType: "application/json;charset=utf-8",
  		data: JSON.stringify(data)
  	  })
  }

  // KR跟项目关联
  export function krAssociationProject(data){
  	  return http.request({
  		url: 'okr-service/okr/krAssociationProject',
  		method: "POST",
  		contentType: "application/json;charset=utf-8",
  		data: JSON.stringify(data)
  	  })
  }

  // 查看KR对齐详情
  export function krDetails(data){
  	  return http.request({
  	    url: 'okr-service/okr/krDetails',
  	    method: "GET",
  	    data
  	  })
  }
  // 查看Objectives对齐详情
  export function ObjectivesDetails(data){
	  return http.request({
	    url: 'okr-service/okr/ObjectivesDetails',
	    method: "GET",
	    data
	  })
  }
  // 取消Objectives对齐
  export function objectivesCancel(data){
  	  return http.request({
  		url: 'okr-service/okr/objectivesCancel/'+ data,
  		method: "POST",
  		contentType: "application/json;charset=utf-8",
  		data: JSON.stringify(data)
  	  })
  }
  // 取消KR对齐
  export function krCancel(data){
  	  return http.request({
  		url: 'okr-service/okr/krCancel',
  		method: "POST",
  		contentType: "application/json;charset=utf-8",
  		data: JSON.stringify(data)
  	  })
  }
  

  // 根据code获取访问用户身份
  export function getUserInfo(data){
	  return http.request({
	    // url: 'auth-service/getUserInfo',
	    url: 'auth-service/loginByWx',
	    method: "GET",
	    data
	  })
  }

  // 绑定用户手机号码
  export function bindWxUser(data){
	  return http.request({
	    		url: 'auth-service/bindWxUser',
	    		method: "POST",
	    		contentType: "application/json;charset=utf-8",
	    		data: JSON.stringify(data)
	  })
  }

  // 采购管理-查询状态
  export function purchasestatus(data){
  	  return http.request({
  	    url: 'purchase-service/purchase/status',
  	    method: "GET",
  	    data
  	  })
  }
  // 采购订单待审批查询
  export function purchaseapprovals(data){
	  return http.request({
	    		url: 'purchase-service/purchase/approvals',
	    		method: "POST",
	    		contentType: "application/json;charset=utf-8",
	    		data: JSON.stringify(data)
	  })
  }

  // 采购订单详情
  export function purchaseDetail(data){
	  return http.request({
	    		url: 'purchase-service/purchase/detail',
	    		method: "POST",
	    		contentType: "application/json;charset=utf-8",
	    		data: JSON.stringify(data)
	  })
  }
  // 采购审批
  export function purchaseApproval(data){
	  return http.request({
	    		url: 'purchase-service/purchase/approval',
	    		method: "POST",
	    		contentType: "application/json;charset=utf-8",
	    		data: JSON.stringify(data)
	  })
  }
  // 待发单列表
  export function purchaseList(data){
	  return http.request({
	    		url: 'purchase-service/purchase/list',
	    		method: "POST",
	    		contentType: "application/json;charset=utf-8",
	    		data: JSON.stringify(data)
	  })
  }
// 获取公司地址信息
export function companyDetail(data){
	return http.request({
		url: 'admin-service/company/detail/'+ data.id,
		method: "GET",
	})
}
// 发送采购需求
export function purchasesend(data){
	return http.request({
	  		url: 'purchase-service/purchase/send',
	  		method: "POST",
	  		contentType: "application/json;charset=utf-8",
	  		data: JSON.stringify(data)
	})
}
// 关闭采购订单
export function purchaseclose(data){
	return http.request({
	  		url: 'purchase-service/purchase/close',
	  		method: "POST",
	  		contentType: "application/json;charset=utf-8",
	  		data: JSON.stringify(data)
	})
}
// 更新默认地址
export function contactupdateDefault(data){
	return http.request({
		url: 'company-service/contact/updateDefault/'+ data.id,
		method: "GET",
	})

}
// 删除地址
export function contactdelete(data){
	return http.request({
		url: 'company-service/contact/delete',
		method: "GET",
		data,
	})
}
// 新增地址
export function contactAdd(data){
	return http.request({
	  		url: 'company-service/contact/add',
	  		method: "POST",
	  		contentType: "application/json;charset=utf-8",
	  		data: JSON.stringify(data)
	})
}
// 退出登录
export function logout(data){
	return http.request({
		url: 'auth-service/logout',
		method: "GET",
		data,
	})
}
// 完成收货
export function purchaseisFinish(data){
	return http.request({
	  		url: 'purchase-service/purchase/isFinish',
	  		method: "POST",
	  		contentType: "application/json;charset=utf-8",
	  		data: JSON.stringify(data)
	})
}
// 签收详情
export function purchaseSignDetail(data){
	return http.request({
	  		url: 'purchase-service/purchase/sign/detail',
	  		method: "POST",
	  		contentType: "application/json;charset=utf-8",
	  		data: JSON.stringify(data)
	})

}
// 工序列表
export function processesList(data){
	return http.request({
		url: 'mfg-service/processes',
		method: "GET",
		data,
	})
}
// 库位详情
export function getStorehouses(data,type='only'){
	if(type=='only'){
	return http.request({
		url: 'storage-service/storehouses/'+ data.id,
		method: "GET",
	})
	}else{
		return http.request({
			url: 'storage-service/storehouses',
			method: "GET",
			data,
		})
	}
}
// 库位入库
export function signInDistribute(data){
	return http.request({
	  		url: 'purchase-service/purchase/signIn/distribute',
	  		method: "POST",
	  		contentType: "application/json;charset=utf-8",
	  		data: JSON.stringify(data)
	})
}
// 分配入库
export function purchaseSignIn(data){
	return http.request({
	  		url: 'purchase-service/purchase/signIn',
	  		method: "POST",
	  		contentType: "application/json;charset=utf-8",
	  		data: JSON.stringify(data)
	})
}
// 物流签收记录列表
export function purchaseSignList(data){
	return http.request({
	  		url: 'purchase-service/purchase/sign/list',
	  		method: "POST",
	  		contentType: "application/json;charset=utf-8",
	  		data: JSON.stringify(data)
	})
}
// 物流退货记录列表
export function purchaseSendList(data){
	return http.request({
	  		url: 'purchase-service/purchase/send/list',
	  		method: "POST",
	  		contentType: "application/json;charset=utf-8",
	  		data: JSON.stringify(data)
	})
}
// 物流快递查询
export function deliveryLogistics(data){
	return http.request({
	  		url: 'cross-service/delivery/logistics',
	  		method: "POST",
	  		contentType: "application/json;charset=utf-8",
	  		data: JSON.stringify(data)
	})
}

// 批次修改备注
export function updateBatchRemark(data){
	return http.request({
	  		url: 'storage-service/update/batch/remark',
	  		method: "POST",
	  		contentType: "application/json;charset=utf-8",
	  		data: JSON.stringify(data)
	})
}


// 查看订单详情供应商计划
export function lookByPurchaseIdAndMaterialId(data){
	return http.request({
		url: 'purchase-service/SupplierProgram/lookByPurchaseIdAndMaterialId',
		method: "GET",
		data,
	})
}


// 待审核列表
export function getApproveList(data){
	return http.request({
	  		url: 'sales-service/sales/order/approve/list',
	  		method: "POST",
	  		contentType: "application/json;charset=utf-8",
	  		data: JSON.stringify(data)
	})
}


// 销售订单列表
export function salesOrderList(data){
	return http.request({
		url: 'sales-service/sales/order/listPage',
		method: "GET",
		data,
	})
}

// 销售订单详情
export function getOrderSales(id){
	return http.request({
		url: 'sales-service/sales/order/'+ id,
		method: "GET",
	})
}

// 订单退回
export function orderReturn(data){
	return http.request({
		url: 'sales-service/sales/order/order/back',
		method: "GET",
		data,
	})
}
// 订单同意
export function orderPass(idAndTime,data){
	return http.request({
		url: 'sales-service/sales/order/add/'+ idAndTime,
		method: "GET",
		data,
	})
}
// 获取部门列表
export function getSectionList(data){
	return http.request({
	  		url: 'company-service/org/selectList',
	  		method: "POST",
	  		contentType: "application/json;charset=utf-8",
	  		data: JSON.stringify(data)
	})
}

// 发货单详情
export function getLogisticsDetails(id){
	return http.request({
		url: 'sales-service/delivery/'+ id,
		method: "GET",
	})
}

// 通知对象列表
export function getObjectList(data){
	return http.request({
		url: 'sms-service/noticeObjTemp/queryTemplate',
		method: "GET",
		data
	})
}


// 提交申请发货
export function submitSendOut(data){
	return http.request({
	  		url: 'sales-service/sales/send/cmd/add',
	  		method: "POST",
	  		contentType: "application/json;charset=utf-8",
	  		data: JSON.stringify(data)
	})
}


// 消息通知弹窗
export function sendNoticePage(data){
	return http.request({
	  		url: 'sms-service/noticeTemp/sendNoticePage',
	  		method: "POST",
	  		contentType: "application/json;charset=utf-8",
	  		data: JSON.stringify(data)
	})
}

// 确定并发送
export function sendNotice(data){ 
	return http.request({
	  		url: 'sms-service/notice/sendNotice',
	  		method: "POST",
	  		contentType: "application/json;charset=utf-8",
	  		data: JSON.stringify(data)
	})
}

// 选择模板
export function sendTempList(data){ 
	return http.request({
	  		url: 'sms-service/noticeTemp/sendTempList',
	  		method: "POST",
	  		contentType: "application/json;charset=utf-8",
	  		data: JSON.stringify(data)
	})
}


// 计划录入
export function addMaterialPlanEntry(data){ 
	return http.request({
	  		url: 'purchase-service/ShoppingList/addMaterialPlanEntry',
	  		method: "POST",
	  		contentType: "application/json;charset=utf-8",
	  		data: JSON.stringify(data)
	})
}

// 修改计划录入
export function updateMaterialPlanEntry(data){ 
	return http.request({
	  		url: 'purchase-service/ShoppingList/updateMaterialPlanEntry',
	  		method: "POST",
	  		contentType: "application/json;charset=utf-8",
	  		data: JSON.stringify(data)
	})
}

// 计划录入-改变状态
export function updateSalesOrderMaterialById(data){ 
	return http.request({
	  		url: 'purchase-service/ShoppingList/updateSalesOrderMaterialById',
	  		method: "POST",
	  		contentType: "application/json;charset=utf-8",
	  		data: JSON.stringify(data)
	})
}


// 计划录入-同步
export function shoppingListScheduleSync(data){ 
	return http.request({
	  		url: 'purchase-service/ShoppingList/scheduleSync',
	  		method: "POST",
	  		contentType: "application/json;charset=utf-8",
	  		data: JSON.stringify(data)
	})
}


// 查看计划
export function shoppingListLook(id){
	return http.request({
		url: 'purchase-service/ShoppingList/look/'+ id,
		method: "GET",
	})
}

// 删除计划
export function shoppingListDelete(id){
	return http.request({
		url: 'purchase-service/ShoppingList/delete/'+ id,
		method: "GET",
	})
}